<?php
	//----------------------- INPUT ELEMENTS -------------------//
	$ssFilter 		= $this->arrParam['ssFilter'];
	$selectLanguages = $ssFilter['lang_code'] . $this->formHidden('lang_code',$ssFilter['lang_code']);
	$title 				= $this->formText ( 'title', $this->Item['title'], array ('class' => 'txtlong active', 'onchange'=>"get_alias()") );
	$selectClb			= $this->formSelect('id_clb',$this->Item['id_clb'],array('size'=>0,'style'=>'min-width:200px;'),$this->slbClb);
	$date	 			= $this->formText ('date', $this->Item['date'], array ('class' => 'hasDatePicker active','style'=>'min-width:200px;', 'onchange'=>"get_alias()") );
	
	$op = array('1'=>'Chưa thực hiện',
			'2'=>'Đang thực hiện',
			'3'=>'Đã thực hiện',
	
	);
	$trangthai 	= $this->formSelect('status',$this->Item['status'],array(),$op);
	
	
	$content 		= $this->cmsEditor('content',htmlspecialchars_decode($this->Item['content']),array('toolbar'=>'MyToolbar', 'language'=>'vi'));
	
	
	$arrInput = array(
				//array('label' => 'Chọn ngôn ngữ','input' => $selectLanguages),
				array('label' => 'Tiêu đề','input' => $title, 'desc' => '<span class="red">*</span>'),
				array('label' => 'Câu lạc bộ','input' => $selectClb),
				array('label' => 'Ngày thực hiện','input' => $date),
				array('label' => 'Trạng thái','input' => $trangthai),
				array('label' => 'Mô tả','input' => $content, 'cols' => 2,'style' => 'padding-top:0;'),
			);
	
	
	//--------------------- Blocks ---------------------
	
	if(count($this->messageError)>0){
		$errors = $this->formErrors($this->messageError,array('id'=>'errors'));
	}
?>


<div class="left_content">
	<?php echo $this->render($this->arrParam['controller'] . '/toolbar/left.php');?>
	
</div>


<div class="right_content" style="background: #fff !important;">
	<div class="block_breadcrumb">
		<?php echo $this->blkBreadcrumbs('default'); ?>
	</div>
	<div class="appContent">
	
		<?php echo $this->render('admin-coso/toolbar/index.php');?>
	 	<div class="clr"></div>
		<?php echo $this->render('admin-coso/sublink/index.php');?>
		<?php echo $errors;?>
	

	<form name="appForm" method="post" action="" enctype="multipart/form-data">
	<script>
	$(function() {
	$( "#tabs" ).tabs();
	});
	</script>
	<div id="tabs">	
	<ul>
	<li><a href="#tabs-1">Event Câu Lạc Bộ </a></li>
	</ul>		
	<div id="tabs-1">
	<div class="tblForm">
	
		<!-- BEGIN: CONTENT -->
		<div class="app_content goc10">
			<div class="width-60 fl">
				 
					<table class="adminformlist">
						<?php echo $this->partialLoop('row.php', $arrInput);?>
					</table>
				 
			</div>
			
			<div class="clr"></div>
		</div>
		<!-- END: 	CONTENT -->
		</div></div></div>
	</form>
	</div></div>